-- GENERATED SPELL FOR [Wretched Skulker] --


function spell0_24688(pUnit, Event) --@Drink Fel Infusion,Self--
pUnit:FullCastSpellOnTarget(44505,pUnit)
pUnit:RegisterEvent('Sorts_24688', 10297, 1)
end

function spell1_24688(pUnit, Event) --@Wretched Stab,n/a--
pUnit:FullCastSpellOnTarget(44533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24688', 542, 1)
end

function Sorts_24688(pUnit, Event)
local choix_sorts_24688 = math.random(0, 1)
if choix_sorts_24688 == 0 then
pUnit:RegisterEvent('spell0_24688', 1, 1)
end
if choix_sorts_24688 == 1 then
pUnit:RegisterEvent('spell1_24688', 1, 1)
end
end

function mob24688_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24688', math.random(1500, 3000), 1)
end

function mob24688_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24688_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24688_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24688, 1, 'mob24688_Action')
RegisterUnitEvent(24688, 2, 'mob24688_Leave')
RegisterUnitEvent(24688, 3, 'mob24688_Kill')
RegisterUnitEvent(24688, 4, 'mob24688_Die')
